package com.lk.xiteng.blog.repository;

import com.lk.xiteng.blog.entity.Blog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface BlogRepository extends ElasticsearchRepository<Blog,String> {
    List<Blog> findByAuthor(String author);
    Page<Blog> findByTitleLikeOrContentLike(String title, String content, Pageable pageable);
}
